package com.rainng.coursesystem.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rainng.coursesystem.model.bo.CourseItemBO;
import com.rainng.coursesystem.model.bo.Homework;
import com.rainng.coursesystem.model.bo.StudentCourseSelectItemBO;
import com.rainng.coursesystem.model.entity.CourseEntity;
import com.rainng.coursesystem.model.entity.HomeworkEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomeWorkMapper extends BaseMapper<HomeworkEntity> {

    void addHomeWork(@Param("homework") Homework homework);

    List<HomeworkEntity> selectByCourseListAndHomeworkIdList(@Param("courseList") List<Integer> courseList,@Param("homeworkIdList") List<Integer> homeworkIdList);

    List<HomeworkEntity> selectByCourseListAndHomeworkIdList1(@Param("courseList") List<Integer> courseList,@Param("homeworkIdList") List<Integer> homeworkIdList);
}
